home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource5
/
340_01
/
ufc035.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-01-09
|
701b
|
34 lines
/* Lattice C
example for dynamic attribute modification
*/
#include "_ufc03.h"
#include "testfmt.h"
main()
{
#include "testfmt.i"
/* normal output */
memcpy(FMT,"testfmt ",8);
FKZ = 2;
SM = 0;
_UNIF(&FKZ, FMT, testfmt.fld0, &RET, &SM, Daten);
/* change attribute of field fld1 */
FKZ = 20;
SM = 1;
RET = 15;
_UNIF(&FKZ, FMT, testfmt.fld0, &RET, &SM, Daten);
FKZ = 3;
_UNIF(&FKZ, FMT, testfmt.fld0, &RET, &SM, Daten);
/* change textattribut and frame attribut */
FKZ = 21;
RET = 15;
_UNIF(&FKZ, FMT, testfmt.fld0, &RET, &SM, Daten);
FKZ = 22;
RET = 15;
_UNIF(&FKZ, FMT, testfmt.fld0, &RET, &SM, Daten);
FKZ = 2;
_UNIF(&FKZ, FMT, testfmt.fld0, &RET, &SM, Daten);
}